//only for browser
import * as request from 'superagent/lib/client'
import {createXHRClass} from "./WXXHR";


export default function useWXXHR() {

  if (typeof wx === 'undefined') return

  const WXXHR = createXHRClass(wx)

  const getXHR = () => new WXXHR()

  request.getXHR = getXHR
}
